/**
 * 
 */
package arisufascion.com.handler;

import com.google.gson.Gson;

/**
 * @author Kelvin
 * 
 */
public class ServiceHandler {
	Gson gson = new Gson();

	public ProductHandler getProductLatests(String response) {
		ProductHandler mProductHandler = gson.fromJson(response,
				ProductHandler.class);
		return mProductHandler;
	}

	public CategorieHandler getCategories(String response) {
		CategorieHandler mCategorieHandler = gson.fromJson(response,
				CategorieHandler.class);
		return mCategorieHandler;
	}

	public ArticleHandler getArticle(String response){
		ArticleHandler articleHandler=gson.fromJson(response, ArticleHandler.class);
		return articleHandler;
	}
	
	public ProfileHandler getProfile(String response){
		ProfileHandler profileHandler=gson.fromJson(response, ProfileHandler.class);
		return profileHandler;
	}
	
	
	public CountryHandler getCountry(String response){
		CountryHandler countryHandler=gson.fromJson(response, CountryHandler.class);
		return countryHandler;
	}
	
	
	public StateHandler getState(String response){
		StateHandler stateHandler=gson.fromJson(response, StateHandler.class);
		return stateHandler;
	}
	
	
}
